{template nheader.html}
<div class="page-bar">

    <div class="page-toolbar">
        <div class="btn-group pull-right">
            <a>{fc_lang('支付订单')}</a>
            <i class="fa fa-circle"></i>
        </div>
    </div>
</div>
<div class="portlet mylistbody">
    <div class="portlet-body">
        <div class="c-comment-list">
            <label>微信支付，请扫码</label>
            <img alt="模式二扫码支付" src="http://paysdk.weixin.qq.com/example/qrcode.php?data={urlencode($url)}" style="width:150px;height:150px;"/>
        </div>
        <div class="c-comment-list">
             <label>去支付宝支付</label>
             <button class="sbtn-zfb" target="_blank">支付</button>
        </div>

    </div>

</div>
<script>
$(function () {
    $(".sbtn-zfb").click(function () {
        // alert('123');
        window.location.href = "{dr_url('order/zfbpay',array('oid'=>$oid))}";
    });
});
</script>
<script language=javascript>
    var int=self.setInterval("orderStatus()",3000)
    function orderStatus()
    {
        $.post("{dr_url('order/orderStatus')}",
            {
                oid:"{$oid}"
            },
            function(data,status){
                var orders = JSON.parse(data);
                if(orders.status){
                    // alert(orders.msg);
                    window.location.href = "{dr_url('order/index')}";
                }else{
                    alert(orders.msg);
                }
            });
    }
</script>
{template nfooter.html}